import yup from './yup'

import { all } from '@vee-validate/rules'
import * as veeValidate from 'vee-validate'

//指定设置useField
// const useFields = (fields: string[]) => {
//   fields.forEach((field) => veeValidate.useField(field))
// }

veeValidate.configure({
  validateOnInput: true,
})

export default { all, yup, ...veeValidate }
